import { createRouter, createWebHashHistory } from "vue-router";
import Home from '../views/Home.vue'
import Welcome from '../views/Welcome.vue'
import Login from '../views/Login.vue'
const routes = [
  {
    path:'/',
    name:"home",
    component:Home,
    meta:{title:'home'},
    redirect:'/welcome',
    children:[
      {
        path:'/welcome',
        name:"welcome",
    meta:{title:'欢迎'},

        component:Welcome,
      },
      {
        path:'/login',
        name:"login",
    meta:{title:'登陆'},

        component:Login,
      }
    ]
  }
]

const router = createRouter({
  history:createWebHashHistory(),
  routes
})
export default router